package com.example.service.webhook.business.jingdong.entity;

import com.example.service.webhook.repository.base.Saveable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author liyang
 * @email liyang@51dojo.com
 * @create 2017-10-24 上午10:19
 * @description 京东白条实体
 **/
@JsonIgnoreProperties(value = {"primaryVal", "keyColumns", "tableName"}, ignoreUnknown = true)
public class JdBtBillEntity implements Saveable {

    private long id;
    private String userId;

    private String mappingId;

    private String billId;

    private BigDecimal billAmt;

    private BigDecimal payedAmt;

    private BigDecimal refundAmt;

    private BigDecimal planedAmt;

    private BigDecimal restPlanAmt;

    private int status;

    private Date billDate;

    private Date billLimitDate;

    private BigDecimal sdpAmt;

    private BigDecimal minPayAmt;

    private int isCurBill;
    private int isInPayDay;

    private Date createTime;
    private Date lastModifyTime;

    private static final String[] keyColumns = {"id"};
    private static final String tableName = "t_jd_btbill";


    @Override
    public String getTableName() {
        return tableName;
    }

    @Override
    public String[] getKeyColumns() {
        return keyColumns;
    }

    @Override
    public String getPrimaryVal() {
        return String.valueOf(id);
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getMappingId() {
        return mappingId;
    }

    public void setMappingId(String mappingId) {
        this.mappingId = mappingId;
    }

    public String getBillId() {
        return billId;
    }

    public void setBillId(String billId) {
        this.billId = billId;
    }

    public BigDecimal getBillAmt() {
        return billAmt;
    }

    public void setBillAmt(BigDecimal billAmt) {
        this.billAmt = billAmt;
    }

    public BigDecimal getPayedAmt() {
        return payedAmt;
    }

    public void setPayedAmt(BigDecimal payedAmt) {
        this.payedAmt = payedAmt;
    }

    public BigDecimal getRefundAmt() {
        return refundAmt;
    }

    public void setRefundAmt(BigDecimal refundAmt) {
        this.refundAmt = refundAmt;
    }

    public BigDecimal getPlanedAmt() {
        return planedAmt;
    }

    public void setPlanedAmt(BigDecimal planedAmt) {
        this.planedAmt = planedAmt;
    }

    public BigDecimal getRestPlanAmt() {
        return restPlanAmt;
    }

    public void setRestPlanAmt(BigDecimal restPlanAmt) {
        this.restPlanAmt = restPlanAmt;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getBillDate() {
        return billDate;
    }

    public void setBillDate(Date billDate) {
        this.billDate = billDate;
    }

    public Date getBillLimitDate() {
        return billLimitDate;
    }

    public void setBillLimitDate(Date billLimitDate) {
        this.billLimitDate = billLimitDate;
    }

    public BigDecimal getSdpAmt() {
        return sdpAmt;
    }

    public void setSdpAmt(BigDecimal sdpAmt) {
        this.sdpAmt = sdpAmt;
    }

    public BigDecimal getMinPayAmt() {
        return minPayAmt;
    }

    public void setMinPayAmt(BigDecimal minPayAmt) {
        this.minPayAmt = minPayAmt;
    }

    public int getIsCurBill() {
        return isCurBill;
    }

    public void setIsCurBill(int isCurBill) {
        this.isCurBill = isCurBill;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(Date lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }

    public int getIsInPayDay() {
        return isInPayDay;
    }

    public void setIsInPayDay(int isInPayDay) {
        this.isInPayDay = isInPayDay;
    }
}
